﻿<%@ Assembly Name="Microsoft.SharePoint.ApplicationPages, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/_layouts/application.master" Inherits="AWS.SLAM.Administration.Configuration, AWS.SLAM, Version=1.0.3.0, Culture=neutral, PublicKeyToken=28f8d30936a98765" %>
<%@ Register TagPrefix="wssuc" TagName="ButtonSection" Src="~/_controltemplates/ButtonSection.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormControl" Src="~/_controltemplates/InputFormControl.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormSection" Src="~/_controltemplates/InputFormSection.ascx" %>
<%@ Register TagPrefix="wssawc" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"
    Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
    <SharePoint:EncodedLiteral ID="PageTitle"
						Text="SLAM Control Panel - Manage Configuration"
						EncodeMethod="HtmlEncode" runat="server"/>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server">
    <SharePoint:EncodedLiteral ID="TitleArea"
						Text="SLAM Control Panel - Manage Configuration"
						EncodeMethod="HtmlEncode" runat="server"/>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="PlaceHolderPageDescription" runat="server">
    <SharePoint:FormDigest ID="spFormDigestControl" runat="server" />
    <div>Manage SLAM's configuration.</div>
    <br />
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderId="PlaceHolderMain" runat="server">
    
    <asp:Panel id="optionsPanel" runat="server">
        <wssuc:InputFormSection runat="server" Title="Validate Configuration" Description="Validates SLAM's configuration file by attempting to match all configured Lists and Content Types with Lists and Content Types in SharePoint as well as attempting to match all configured fields for those types." >
            <Template_InputFormControls>
                <asp:Button ID="btnValidateConfiguration" runat="server" CssClass="ms-ButtonHeightWidth" Text="Validate" OnClick="btnValidateConfiguration_Click" />
            </Template_InputFormControls>
        </wssuc:InputFormSection>
    </asp:Panel>
   
    <asp:Panel id="validationResults" runat="server">
        <asp:Label ID="lblErrorMessages" runat="server" ForeColor="Red"></asp:Label>
        
        <asp:Repeater ID="rptMatchedTypes" runat="server">
            <HeaderTemplate>
                <div style="float:left; width:400px;">
                    <div style="margin-bottom: 4px; width:87px; border-bottom: solid 1px black">Matched Types</div>
            </HeaderTemplate>
            <ItemTemplate>
                    <div style="padding-bottom: 4px;"><%# GetDataItem().ToString() %></div>
            </ItemTemplate>
            <FooterTemplate>
                </div>
            </FooterTemplate>
        </asp:Repeater>
        <asp:Repeater ID="rptUnmatchedTypes" runat="server">
            <HeaderTemplate>
                <div style="float:left; width:400px;">
                    <div style="margin-bottom: 4px; width:105px; border-bottom: solid 1px black">Unmatched Types</div>
            </HeaderTemplate>
            <ItemTemplate>
                    <div style="padding-bottom: 4px;"><%# GetDataItem().ToString() %></div>
            </ItemTemplate>
            <FooterTemplate>
                </div>
            </FooterTemplate>
        </asp:Repeater>
        <div style="margin-bottom: 30px; clear:both"></div>
        <asp:Repeater ID="rptMatchedFields" runat="server">
            <HeaderTemplate>
                <div style="float:left; width:400px;">
                    <div style="margin-bottom: 4px; width:87px; border-bottom: solid 1px black">Matched Fields</div>
            </HeaderTemplate>
            <ItemTemplate>
                    <div style="padding-bottom: 4px;"><%# GetDataItem().ToString() %></div>
            </ItemTemplate>
            <FooterTemplate>
                </div>
            </FooterTemplate>
        </asp:Repeater>
        <asp:Repeater ID="rptUnmatchedFields" runat="server">
            <HeaderTemplate>
                <div style="float:left; width:400px;">
                    <div style="margin-bottom: 4px; width:105px; border-bottom: solid 1px black">Unmatched Fields</div>
            </HeaderTemplate>
            <ItemTemplate>
                    <div style="padding-bottom: 4px;"><%# GetDataItem().ToString() %></div>
            </ItemTemplate>
            <FooterTemplate>
                </div>
            </FooterTemplate>
        </asp:Repeater>
        <div style="clear:both"></div>
    </asp:Panel>
    
    <wssuc:ButtonSection runat="server" ShowStandardCancelButton="false">
        <Template_Buttons>
            <asp:Button UseSubmitBehavior="false" Visible="false" ID="btnRefresh" runat="server" CssClass="ms-ButtonHeightWidth" Text="Refresh" OnClick="btnValidateConfiguration_Click" />
            <asp:Button UseSubmitBehavior="false" runat="server" CssClass="ms-ButtonHeightWidth" Text="Back" id="btnBack" OnClick="btnBack_Click"/>
        </Template_Buttons>
    </wssuc:ButtonSection>
    
</asp:Content>
